<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            border: 0;
            box-sizing: border-box;
        }

        .dialog {
            position: relative;
            width: 300px;
            height: 180px;
            border-radius: 5px;
            border: 1px solid black;
            overflow: hidden;
        }

        .dialog .title {
            height: 40px;
            line-height: 40px;
            text-align: center;
            
        }
        .dialog .message {
            width: 300px;
            height: 100px;
            line-height: 100px;
            text-align: center;
            border-top: 1px solid black;
            
        }
        .dialog .button {
            display: flex;
            position: absolute;
            width: 300px;
            height: 40px;
            bottom: 0px;
            left: 0px;
            border-top: 1px solid black;
        }
        .dialog .button button {
            display: inline-block;
            
            border: none;
            line-height: 40px;
            text-align: center;
            background: none;
            cursor: pointer;
        }
        .dialog .button .cancel {
            width: 50%;
            border-right: 1px solid black;
        }
        .dialog .button .cancel:hover {
            color: skyblue;
        }
        .dialog .button .confirm:hover {
            color: red;
        } 

    </style>
</head>

<body>
    <div class="dialog">
        <p class="title">警告</p>
        <p class="message">确认删除吗</p>
        <div class="button">
            <button class="cancel">取消</button>
            <button class="confirm">确定</button>
        </div>
    </div>

</body>

</html>